const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.user_pic,
  name: state => state.user.userInfo.nickname,
  userId: state => state.user.userInfo.id,
  routes: state => state.user.routes,
  userInfo: state => state.user.userInfo,
}
export default getters
